//
//  WDVerify.m
//  Zhihuijinfu
//
//  Created by 王笛 on 2017/2/23.
//  Copyright © 2017年 王笛. All rights reserved.
//

#import "WDVerify.h"

@implementation WDVerify

+ (BOOL)verifyStr:(NSString *)str inArr:(NSArray *)arr
{
    NSString *tempStr;
    BOOL correct = NO;
    for (tempStr in arr) {
        if ([tempStr isKindOfClass:[NSNumber class]]) {
            tempStr = [NSString stringWithFormat:@"%@", tempStr];
        }
        
        if ([tempStr isEqualToString:str]) {
            correct = YES;
            break;
        } else {
            correct = NO;
        }
    }
    
    return correct;
}

@end
